package com.baihan.angus.app.game.common.util.listener;

import android.view.View;

public abstract class MyClickListener implements View.OnClickListener {

    private long lastClickStamp;

    @Override
    public void onClick(View v) {
        long current = System.currentTimeMillis();
        if (current - lastClickStamp > 2000) {
            lastClickStamp = current;
            onTimeLockClick(v);
        }
    }

    public abstract void onTimeLockClick(View v);
}
